package com.ruoyi.comment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资讯评论对象 res_information_comment
 * 
 * @author ruoyi
 * @date 2021-12-20
 */
public class ResInformationComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** Id */
    private Long id;

    /** 用户Id */
    private Long userid;

    /** 资讯Id */
    private Long infoid;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "评论日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date starttime;

    /** 父级评论Id */
    private Long parentcommentid;

    /** 被回复评论用户Id */
    private Long replyuserid;

    /** 被回复评论用户的用户名 */
    private String replyusername;

    /** 评论用户的用户名 */
    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUseravatar() {
        return useravatar;
    }

    public void setUseravatar(String useravatar) {
        this.useravatar = useravatar;
    }

    /** 评论用户的头像 */
    private String useravatar;

    public String getReplyusername() {
        return replyusername;
    }

    public void setReplyusername(String replyusername) {
        this.replyusername = replyusername;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setInfoid(Long infoid) 
    {
        this.infoid = infoid;
    }

    public Long getInfoid() 
    {
        return infoid;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setStarttime(Date starttime) 
    {
        this.starttime = starttime;
    }

    public Date getStarttime() 
    {
        return starttime;
    }
    public void setParentcommentid(Long parentcommentid) 
    {
        this.parentcommentid = parentcommentid;
    }

    public Long getParentcommentid() 
    {
        return parentcommentid;
    }
    public void setReplyuserid(Long replyuserid) 
    {
        this.replyuserid = replyuserid;
    }

    public Long getReplyuserid() 
    {
        return replyuserid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userid", getUserid())
            .append("infoid", getInfoid())
            .append("content", getContent())
            .append("starttime", getStarttime())
            .append("parentcommentid", getParentcommentid())
            .append("replyuserid", getReplyuserid())
            .toString();
    }
}
